<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>货物预定系统</title>
        <import type='js' file="jq,jquery-ui,jquery-blockUI,admin_script,home" basepath="__ROOT__/static/script" />
        <import type='css' file="admin_style" basepath="__ROOT__/static/style" />
    </head>

    <body>
        <div id="page_head">
            <div class="masthead">
                <h1 class="logo"></h1>
                <div id="nav">
                    <ul id="mainnav">
                        <li <if condition="MODULE_NAME eq 'Booklist'">class="cur"</if>><a href="{:U('Admin/Booklist/index')}">订货信息</a>
                        </li>
                        <li <if condition="MODULE_NAME eq 'Setgoods'">class="cur"</if>><a href="{:U('Admin/Setgoods/index')}">货物设置</a>
                        </li>
                        <li <if condition="MODULE_NAME eq 'Usermanage'">class="cur"</if>><a href="{:U('Admin/Usermanage/index')}">用户管理</a>
                        </li>
                        <li style="color:red"><font></font></li>

                    </ul>
                </div>
                <literal>
                    <script type="text/javascript">
                        /*mainnav*/
                        jQuery('#mainnav li').hover(function() {
                            jQuery('ul', this).slideDown(200);
                        }, function() {
                            jQuery('ul', this).slideUp(300);
                        });
                    </script>
                </literal>  	
                <div class="us_info"> <a href="#" class="l"><?php if(file_exists('./upload/user/thumb/'.$user['id'].'/big')) echo "<img src='/upload/user/thumb/".$user['id']."/big' width='40' height='40' />"; ?></a> 管理员用户 <a href="#" style="color:red;">{$unick}</a> <i>|</i> <a href="{:U('Home/Login/Logout')}">退出</a> <br />
                    <!--      <span>角色：管理员</span>-->
                </div>
            </div>
        </div>
        <script type="text/javascript" src="__PUBLIC__/js/jquery-1.10.1.min.js"></script>
        <script type="text/javascript">
            setInterval(function() {
                jQuery.ajax({
                    type: "POST",
                    url: "__PUBLIC__/php/myajax.php",
                    global: false,
                    data: "action=ajax",
                    success: function(data) {
                        if(data!=='0'){
                           jQuery("font").html('新订单数：'+data); 
                        }                      
                    },
                })
            }, 5000);
        </script>

    </body>
</html>
